<template>
  <div class="home">
    <button @click="downLoadAjaxEvt('http://221.238.237.202:9097/api/storage/file/20220616/35fe008ec0f84c318187d036d8403fb3.zip','get')">ajax下载</button>
    <!-- http://221.238.237.202:9097/api/storage/file/20220616/35fe008ec0f84c318187d036d8403fb3.zip  大文件 -->
    <!-- http://221.238.237.202:9097/api/storage/file/20220617/04fa41bcdc9b4b66b6936a87ad9ff6f0.zip 小文件-->
  </div>
</template>

<script>
import { fileDownload } from '../utils/fileDownload'
export default {
    data(){
        return{
        }
    },
    components: {

    },
    methods: {
        downLoadAjaxEvt(url,method, params, config){
            fileDownload.downLoadAjaxEvt(url, method = 'get', params, config)
        }
    }
}
</script>

<style scoped>

</style>
